home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
system
/
danix201.zip
/
FGREP.1
< prev
next >
Wrap
Text File
|
1994-01-16
|
1KB
|
46 lines
FGREP(1) Danix Utilities FGREP(1)
NAME
fgrep - search for a given string in files
SYNOPSIS
fgrep [ -bchilnsvx ] [ -e <string> ] [ -f <file> ] word files ...
DESCRIPTION
fgrep searches for a string in files or standard input.
If no files are given, or a '-' is encountered in the file list, input
is taken from standard input.
-b Each line is preceded by the block number on which it
was found. This is sometimes useful in locating disk
block numbers by context.
-c Only a count of matching lines is printed.
-e Forces the next argument to be interpreted as a pattern. Useful
if the pattern begins with - or /.
-f The list of strings is taken from the named file.
-h Do not print filenames.
-i The case of letters is ignored.
-l The names of files with matching lines are printed.
-n Matching lines are printed preceded by their line number in
the file
-s Silent mode. Only error messages are printed.
-v Print lines not matching.
-x Exact matches only (Entire line must be matched).
DIAGNOSTICS
If a match is found, the exit status is 0. If no match is found,
the status is 1. In the case of an error, the status is 2.